package util;

import org.hibernate.cfg.AnnotationConfiguration;
import org.hibernate.tool.hbm2ddl.SchemaExport;

public class GeraTabelas {

    public static void main(String[] args) {

        AnnotationConfiguration cfg = new AnnotationConfiguration().configure("hibernate.cfg.xml");
        SchemaExport se = new SchemaExport(cfg);
        se.create(true, true);
    }
}
